package com.cloud.domain;

import com.cloud.entity.SysRole;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 项目关联角色/权限信息
 *
 * @author yzj
 */
@Data
@Schema(name = "系统关联对象", description = "授权管理")
public class UserProject implements Serializable {

    @Schema(description = "关联角色列表")
    private List<SysRole> roleList;

    @Schema(description = "角色部门范围(用于数据权限)")
    private Map<Long, String> roleDeptScope;

    @Schema(description = "角色权限列表")
    private Set<String> permissions;

}
